<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: Posix_QextSerialPort Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_posix___qext_serial_port-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Posix_QextSerialPort Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Posix_QextSerialPort:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_posix___qext_serial_port.png" usemap="#Posix_5FQextSerialPort_map" alt=""/>
  <map id="Posix_5FQextSerialPort_map" name="Posix_5FQextSerialPort_map">
<area href="class_qext_serial_base.html" alt="QextSerialBase" shape="rect" coords="0,56,131,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae6e0dda91cd654352c26686e88a416ff"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#ae6e0dda91cd654352c26686e88a416ff">Posix_QextSerialPort</a> ()</td></tr>
<tr class="separator:ae6e0dda91cd654352c26686e88a416ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac409b3d891500be663894c9910749390"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#ac409b3d891500be663894c9910749390">Posix_QextSerialPort</a> (const <a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp;s)</td></tr>
<tr class="separator:ac409b3d891500be663894c9910749390"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68f82b42c6be8c39476fce07c1ff9099"><td class="memItemLeft" align="right" valign="top"><a id="a68f82b42c6be8c39476fce07c1ff9099"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_QextSerialPort</b> (const QString &amp;name, QextSerialBase::QueryMode mode=QextSerialBase::Polling)</td></tr>
<tr class="separator:a68f82b42c6be8c39476fce07c1ff9099"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4b94dd87dbd1dcebb90e8cb368681bb"><td class="memItemLeft" align="right" valign="top"><a id="ac4b94dd87dbd1dcebb90e8cb368681bb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_QextSerialPort</b> (const <a class="el" href="struct_port_settings.html">PortSettings</a> &amp;settings, QextSerialBase::QueryMode mode=QextSerialBase::Polling)</td></tr>
<tr class="separator:ac4b94dd87dbd1dcebb90e8cb368681bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0de9ecc15cedbe6713ea2da1ce135e9c"><td class="memItemLeft" align="right" valign="top"><a id="a0de9ecc15cedbe6713ea2da1ce135e9c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_QextSerialPort</b> (const QString &amp;name, const <a class="el" href="struct_port_settings.html">PortSettings</a> &amp;settings, QextSerialBase::QueryMode mode=QextSerialBase::Polling)</td></tr>
<tr class="separator:a0de9ecc15cedbe6713ea2da1ce135e9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae02031d657490ab37d5badf42482847a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#ae02031d657490ab37d5badf42482847a">operator=</a> (const <a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp;s)</td></tr>
<tr class="separator:ae02031d657490ab37d5badf42482847a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12f6cdddbfd1b37109a39a0bcffb446d"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a12f6cdddbfd1b37109a39a0bcffb446d">~Posix_QextSerialPort</a> ()</td></tr>
<tr class="separator:a12f6cdddbfd1b37109a39a0bcffb446d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a007fcdd90f1137b010b6c43aa5b6dc6e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a007fcdd90f1137b010b6c43aa5b6dc6e">setBaudRate</a> (BaudRateType)</td></tr>
<tr class="separator:a007fcdd90f1137b010b6c43aa5b6dc6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f428dad3c4ec2fa8128397628c7e5d1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a8f428dad3c4ec2fa8128397628c7e5d1">setDataBits</a> (DataBitsType)</td></tr>
<tr class="separator:a8f428dad3c4ec2fa8128397628c7e5d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22dedc4f44c33b13f64bff33f844f795"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a22dedc4f44c33b13f64bff33f844f795">setParity</a> (ParityType)</td></tr>
<tr class="separator:a22dedc4f44c33b13f64bff33f844f795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b54ac1bef6090010bf00a45dc173fe"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a34b54ac1bef6090010bf00a45dc173fe">setStopBits</a> (StopBitsType)</td></tr>
<tr class="separator:a34b54ac1bef6090010bf00a45dc173fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bdd56422fbb95da7216f182a1ef6cfb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a8bdd56422fbb95da7216f182a1ef6cfb">setFlowControl</a> (FlowType)</td></tr>
<tr class="separator:a8bdd56422fbb95da7216f182a1ef6cfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33cde9629cc224628258dedbb5b48392"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a33cde9629cc224628258dedbb5b48392">setTimeout</a> (long)</td></tr>
<tr class="separator:a33cde9629cc224628258dedbb5b48392"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a200cb519edfef82199bf1701f4b872e9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a200cb519edfef82199bf1701f4b872e9">open</a> (OpenMode mode)</td></tr>
<tr class="separator:a200cb519edfef82199bf1701f4b872e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a7ddf86a867770c88777c3e78545cb0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a3a7ddf86a867770c88777c3e78545cb0">close</a> ()</td></tr>
<tr class="separator:a3a7ddf86a867770c88777c3e78545cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f12a1a6c1c6a163fe146272e9a7d275"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a5f12a1a6c1c6a163fe146272e9a7d275">flush</a> ()</td></tr>
<tr class="separator:a5f12a1a6c1c6a163fe146272e9a7d275"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6687bed8a582b144763eb11c4240dbe5"><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a6687bed8a582b144763eb11c4240dbe5">size</a> () const</td></tr>
<tr class="separator:a6687bed8a582b144763eb11c4240dbe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d593fe4f4623e93537a531d2c6157b7"><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a6d593fe4f4623e93537a531d2c6157b7">bytesAvailable</a> ()</td></tr>
<tr class="separator:a6d593fe4f4623e93537a531d2c6157b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a425e78db628945a666c52aa8638d0f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a3a425e78db628945a666c52aa8638d0f">ungetChar</a> (char c)</td></tr>
<tr class="separator:a3a425e78db628945a666c52aa8638d0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa099923f1360a08c6b7072254fd056e6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#aa099923f1360a08c6b7072254fd056e6">translateError</a> (ulong error)</td></tr>
<tr class="separator:aa099923f1360a08c6b7072254fd056e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a089c560fd901eabe7190e80a36c7dcb8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a089c560fd901eabe7190e80a36c7dcb8">setDtr</a> (bool set=true)</td></tr>
<tr class="separator:a089c560fd901eabe7190e80a36c7dcb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa099a4b3f406cf017e1dfe55da3a2c6a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#aa099a4b3f406cf017e1dfe55da3a2c6a">setRts</a> (bool set=true)</td></tr>
<tr class="separator:aa099a4b3f406cf017e1dfe55da3a2c6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab419544e866cab58b8a3ce6341f6a7e9"><td class="memItemLeft" align="right" valign="top">virtual ulong&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#ab419544e866cab58b8a3ce6341f6a7e9">lineStatus</a> ()</td></tr>
<tr class="separator:ab419544e866cab58b8a3ce6341f6a7e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_qext_serial_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_qext_serial_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_qext_serial_base.html">QextSerialBase</a></td></tr>
<tr class="memitem:aba0fc6d8b5c675c91ebff90fc6415748 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#aba0fc6d8b5c675c91ebff90fc6415748">QextSerialBase</a> ()</td></tr>
<tr class="separator:aba0fc6d8b5c675c91ebff90fc6415748 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a136b187c6684be0bac22e616b053f7b7 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a136b187c6684be0bac22e616b053f7b7">QextSerialBase</a> (const QString &amp;name)</td></tr>
<tr class="separator:a136b187c6684be0bac22e616b053f7b7 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80eeebbf4585220ec3ced8fcebf6279f inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a80eeebbf4585220ec3ced8fcebf6279f">~QextSerialBase</a> ()</td></tr>
<tr class="separator:a80eeebbf4585220ec3ced8fcebf6279f inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7495b472b5e269d04c0c2e856901207f inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a7495b472b5e269d04c0c2e856901207f">construct</a> ()</td></tr>
<tr class="separator:a7495b472b5e269d04c0c2e856901207f inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c9f83f00f0ea53ee06b757e197cdf64 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a1c9f83f00f0ea53ee06b757e197cdf64">setPortName</a> (const QString &amp;name)</td></tr>
<tr class="separator:a1c9f83f00f0ea53ee06b757e197cdf64 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ec73bcceef66b910bd42a1ab0b6b66f inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a5ec73bcceef66b910bd42a1ab0b6b66f">portName</a> () const</td></tr>
<tr class="separator:a5ec73bcceef66b910bd42a1ab0b6b66f inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87c78f3a69a8576b9c6a6e4c7318d70a inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">QextSerialBase::QueryMode&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a87c78f3a69a8576b9c6a6e4c7318d70a">queryMode</a> () const</td></tr>
<tr class="separator:a87c78f3a69a8576b9c6a6e4c7318d70a inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd8e3b9a5028f9c2645ba89c0fc08a6b inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#abd8e3b9a5028f9c2645ba89c0fc08a6b">setQueryMode</a> (QueryMode mode)</td></tr>
<tr class="separator:abd8e3b9a5028f9c2645ba89c0fc08a6b inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85f4bc317e0b03205f4360529d8caf3 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual BaudRateType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#ab85f4bc317e0b03205f4360529d8caf3">baudRate</a> () const</td></tr>
<tr class="separator:ab85f4bc317e0b03205f4360529d8caf3 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afebe4d557c5c944ccd1039cee91871fd inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual DataBitsType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#afebe4d557c5c944ccd1039cee91871fd">dataBits</a> () const</td></tr>
<tr class="separator:afebe4d557c5c944ccd1039cee91871fd inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b35a11a804f9ee86b07db8a5b5bc0ee inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual ParityType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a7b35a11a804f9ee86b07db8a5b5bc0ee">parity</a> () const</td></tr>
<tr class="separator:a7b35a11a804f9ee86b07db8a5b5bc0ee inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d0d52efbebaa1d832bb9c9b2c40532f inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual StopBitsType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a9d0d52efbebaa1d832bb9c9b2c40532f">stopBits</a> () const</td></tr>
<tr class="separator:a9d0d52efbebaa1d832bb9c9b2c40532f inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a099a89f5492e6ff387dd29132cc3ccd0 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual FlowType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a099a89f5492e6ff387dd29132cc3ccd0">flowControl</a> () const</td></tr>
<tr class="separator:a099a89f5492e6ff387dd29132cc3ccd0 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae92ca5d58748d206a379f063e6412f17 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#ae92ca5d58748d206a379f063e6412f17">isSequential</a> () const</td></tr>
<tr class="separator:ae92ca5d58748d206a379f063e6412f17 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06cb503e03af3a372abc715ac7fbb63c inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a06cb503e03af3a372abc715ac7fbb63c">atEnd</a> () const</td></tr>
<tr class="separator:a06cb503e03af3a372abc715ac7fbb63c inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee681a896845c9594c84dcd47d7eb566 inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#aee681a896845c9594c84dcd47d7eb566">readLine</a> (char *data, qint64 maxSize)</td></tr>
<tr class="separator:aee681a896845c9594c84dcd47d7eb566 inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5889db7f578e11db0c7980de3720deea inherit pub_methods_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">virtual ulong&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#a5889db7f578e11db0c7980de3720deea">lastError</a> () const</td></tr>
<tr class="separator:a5889db7f578e11db0c7980de3720deea inherit pub_methods_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a73b99fe7198e7e94b13c13416a6b9fae"><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#a73b99fe7198e7e94b13c13416a6b9fae">readData</a> (char *data, qint64 maxSize)</td></tr>
<tr class="separator:a73b99fe7198e7e94b13c13416a6b9fae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8aabe89e479259b0b991dbd6b424f78"><td class="memItemLeft" align="right" valign="top">virtual qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_posix___qext_serial_port.html#ae8aabe89e479259b0b991dbd6b424f78">writeData</a> (const char *data, qint64 maxSize)</td></tr>
<tr class="separator:ae8aabe89e479259b0b991dbd6b424f78"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ac4fcc5ae9850c3bc9952a13e4ef82273"><td class="memItemLeft" align="right" valign="top"><a id="ac4fcc5ae9850c3bc9952a13e4ef82273"></a>
QFile *&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_File</b></td></tr>
<tr class="separator:ac4fcc5ae9850c3bc9952a13e4ef82273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4946a554d3cfcd190b4df72f6f44f6eb"><td class="memItemLeft" align="right" valign="top"><a id="a4946a554d3cfcd190b4df72f6f44f6eb"></a>
struct termios&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_CommConfig</b></td></tr>
<tr class="separator:a4946a554d3cfcd190b4df72f6f44f6eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a876397917fbf082b56ae43ab2b4b7b"><td class="memItemLeft" align="right" valign="top"><a id="a0a876397917fbf082b56ae43ab2b4b7b"></a>
struct timeval&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_Timeout</b></td></tr>
<tr class="separator:a0a876397917fbf082b56ae43ab2b4b7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5813ea1fd76c8c5a8948c4085d3e84e"><td class="memItemLeft" align="right" valign="top"><a id="ae5813ea1fd76c8c5a8948c4085d3e84e"></a>
struct timeval&#160;</td><td class="memItemRight" valign="bottom"><b>Posix_Copy_Timeout</b></td></tr>
<tr class="separator:ae5813ea1fd76c8c5a8948c4085d3e84e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_qext_serial_base"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_qext_serial_base')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_qext_serial_base.html">QextSerialBase</a></td></tr>
<tr class="memitem:a0c7cf6443ad80a05d51daaca5d0102ab inherit pro_attribs_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="a0c7cf6443ad80a05d51daaca5d0102ab"></a>
QMutex *&#160;</td><td class="memItemRight" valign="bottom"><b>mutex</b></td></tr>
<tr class="separator:a0c7cf6443ad80a05d51daaca5d0102ab inherit pro_attribs_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7459f3818391091877c88595a48a950a inherit pro_attribs_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="a7459f3818391091877c88595a48a950a"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>port</b></td></tr>
<tr class="separator:a7459f3818391091877c88595a48a950a inherit pro_attribs_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d796e3080f78ff63e821f528439db57 inherit pro_attribs_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="a2d796e3080f78ff63e821f528439db57"></a>
<a class="el" href="struct_port_settings.html">PortSettings</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Settings</b></td></tr>
<tr class="separator:a2d796e3080f78ff63e821f528439db57 inherit pro_attribs_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31816951ba89902fa1dfdb6f18b80f41 inherit pro_attribs_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="a31816951ba89902fa1dfdb6f18b80f41"></a>
ulong&#160;</td><td class="memItemRight" valign="bottom"><b>lastErr</b></td></tr>
<tr class="separator:a31816951ba89902fa1dfdb6f18b80f41 inherit pro_attribs_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67f8a0fb2ce91824c1afc6c95e6b3c3a inherit pro_attribs_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="a67f8a0fb2ce91824c1afc6c95e6b3c3a"></a>
QextSerialBase::QueryMode&#160;</td><td class="memItemRight" valign="bottom"><b>_queryMode</b></td></tr>
<tr class="separator:a67f8a0fb2ce91824c1afc6c95e6b3c3a inherit pro_attribs_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_class_qext_serial_base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_qext_serial_base')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="class_qext_serial_base.html">QextSerialBase</a></td></tr>
<tr class="memitem:abab21776f71ceb4989ad2326680143f5 inherit pub_types_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top"><a id="abab21776f71ceb4989ad2326680143f5"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>QueryMode</b> { <b>Polling</b>, 
<b>EventDriven</b>
 }</td></tr>
<tr class="separator:abab21776f71ceb4989ad2326680143f5 inherit pub_types_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header signals_class_qext_serial_base"><td colspan="2" onclick="javascript:toggleInherit('signals_class_qext_serial_base')"><img src="closed.png" alt="-"/>&#160;Signals inherited from <a class="el" href="class_qext_serial_base.html">QextSerialBase</a></td></tr>
<tr class="memitem:abc9dc7c9a7735476800eb5aa35bec6a8 inherit signals_class_qext_serial_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_base.html#abc9dc7c9a7735476800eb5aa35bec6a8">dsrChanged</a> (bool status)</td></tr>
<tr class="separator:abc9dc7c9a7735476800eb5aa35bec6a8 inherit signals_class_qext_serial_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section version"><dt>Version</dt><dd>1.0.0 </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Stefan Sander </dd>
<dd>
Michal Policht</dd></dl>
<p>A cross-platform serial port class. This class encapsulates the POSIX portion of <a class="el" href="class_qext_serial_port.html">QextSerialPort</a>. The user will be notified of errors and possible portability conflicts at run-time by default - this behavior can be turned off by defining <em>TTY_NOWARN</em> (to turn off all warnings) or <em>TTY_NOWARN_PORT</em> (to turn off portability warnings) in the project. Note that <em>TTY_NOWARN</em> will also turn off portability warnings. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae6e0dda91cd654352c26686e88a416ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6e0dda91cd654352c26686e88a416ff">&#9670;&nbsp;</a></span>Posix_QextSerialPort() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Posix_QextSerialPort::Posix_QextSerialPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. Note that the name of the device used by a <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> constructed with this constructor will be determined by #defined constants, or lack thereof - the default behavior is the same as <em>TTY_LINUX</em>. Possible naming conventions and their associated constants are:</p>
<pre class="fragment">Constant         Used By         Naming Convention
----------       -------------   ------------------------
_TTY_WIN_        Windows         COM1, COM2
_TTY_IRIX_       SGI/IRIX        /dev/ttyf1, /dev/ttyf2
_TTY_HPUX_       HP-UX           /dev/tty1p0, /dev/tty2p0
_TTY_SUN_        SunOS/Solaris   /dev/ttya, /dev/ttyb
_TTY_DIGITAL_    Digital UNIX    /dev/tty01, /dev/tty02
_TTY_FREEBSD_    FreeBSD         /dev/ttyd0, /dev/ttyd1
_TTY_LINUX_      Linux           /dev/ttyS0, /dev/ttyS1
&lt;none&gt;           Linux           /dev/ttyS0, /dev/ttyS1
</pre><p>This constructor assigns the device name to the name of the first port on the specified system. See the other constructors if you need to open a different port. </p>

</div>
</div>
<a id="ac409b3d891500be663894c9910749390"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac409b3d891500be663894c9910749390">&#9670;&nbsp;</a></span>Posix_QextSerialPort() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Posix_QextSerialPort::Posix_QextSerialPort </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor. </p>

</div>
</div>
<a id="a12f6cdddbfd1b37109a39a0bcffb446d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12f6cdddbfd1b37109a39a0bcffb446d">&#9670;&nbsp;</a></span>~Posix_QextSerialPort()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Posix_QextSerialPort::~Posix_QextSerialPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Standard destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6d593fe4f4623e93537a531d2c6157b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d593fe4f4623e93537a531d2c6157b7">&#9670;&nbsp;</a></span>bytesAvailable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 Posix_QextSerialPort::bytesAvailable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the number of bytes waiting in the port's receive queue. This function will return 0 if the port is not currently open, or -1 on error. Error information can be retrieved by calling Posix_QextSerialPort::getLastError(). </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a3a7ddf86a867770c88777c3e78545cb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a7ddf86a867770c88777c3e78545cb0">&#9670;&nbsp;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Closes a serial port. This function has no effect if the serial port associated with the class is not currently open. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a5f12a1a6c1c6a163fe146272e9a7d275"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f12a1a6c1c6a163fe146272e9a7d275">&#9670;&nbsp;</a></span>flush()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::flush </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Flushes all pending I/O to the serial port. This function has no effect if the serial port associated with the class is not currently open. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="ab419544e866cab58b8a3ce6341f6a7e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab419544e866cab58b8a3ce6341f6a7e9">&#9670;&nbsp;</a></span>lineStatus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long Posix_QextSerialPort::lineStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>returns the line status as stored by the port function. This function will retrieve the states of the following lines: DCD, CTS, DSR, and RI. On POSIX systems, the following additional lines can be monitored: DTR, RTS, Secondary TXD, and Secondary RXD. The value returned is an unsigned long with specific bits indicating which lines are high. The following constants should be used to examine the states of individual lines:</p>
<pre class="fragment">Mask        Line
------      ----
LS_CTS      CTS
LS_DSR      DSR
LS_DCD      DCD
LS_RI       RI
LS_RTS      RTS (POSIX only)
LS_DTR      DTR (POSIX only)
LS_ST       Secondary TXD (POSIX only)
LS_SR       Secondary RXD (POSIX only)
</pre><p>This function will return 0 if the port associated with the class is not currently open. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a200cb519edfef82199bf1701f4b872e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a200cb519edfef82199bf1701f4b872e9">&#9670;&nbsp;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Posix_QextSerialPort::open </td>
          <td>(</td>
          <td class="paramtype">OpenMode&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Opens the serial port associated to this class. This function has no effect if the port associated with the class is already open. The port is also configured to the current settings, as stored in the Settings structure. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="ae02031d657490ab37d5badf42482847a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae02031d657490ab37d5badf42482847a">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp; Posix_QextSerialPort::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_posix___qext_serial_port.html">Posix_QextSerialPort</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Override the = operator. </p>

</div>
</div>
<a id="a73b99fe7198e7e94b13c13416a6b9fae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73b99fe7198e7e94b13c13416a6b9fae">&#9670;&nbsp;</a></span>readData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 Posix_QextSerialPort::readData </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qint64&#160;</td>
          <td class="paramname"><em>maxSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads a block of data from the serial port. This function will read at most maxSize bytes from the serial port and place them in the buffer pointed to by data. Return value is the number of bytes actually read, or -1 on error.</p>
<dl class="section warning"><dt>Warning</dt><dd>before calling this function ensure that serial port associated with this class is currently open (use isOpen() function to check if port is open). </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a007fcdd90f1137b010b6c43aa5b6dc6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a007fcdd90f1137b010b6c43aa5b6dc6e">&#9670;&nbsp;</a></span>setBaudRate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setBaudRate </td>
          <td>(</td>
          <td class="paramtype">BaudRateType&#160;</td>
          <td class="paramname"><em>baudRate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the baud rate of the serial port. Note that not all rates are applicable on all platforms. The following table shows translations of the various baud rate constants on Windows(including NT/2000) and POSIX platforms. Speeds marked with an * are speeds that are usable on both Windows and POSIX.</p>
<dl class="section note"><dt>Note</dt><dd>BAUD76800 may not be supported on all POSIX systems. SGI/IRIX systems do not support BAUD1800.</dd></dl>
<pre class="fragment">  RATE          Windows Speed   POSIX Speed
  -----------   -------------   -----------
   BAUD50                 110          50
   BAUD75                 110          75
  *BAUD110                110         110
   BAUD134                110         134.5
   BAUD150                110         150
   BAUD200                110         200
  *BAUD300                300         300
  *BAUD600                600         600
  *BAUD1200              1200        1200
   BAUD1800              1200        1800
  *BAUD2400              2400        2400
  *BAUD4800              4800        4800
  *BAUD9600              9600        9600
   BAUD14400            14400        9600
  *BAUD19200            19200       19200
  *BAUD38400            38400       38400
   BAUD56000            56000       38400
  *BAUD57600            57600       57600
   BAUD76800            57600       76800
  *BAUD115200          115200      115200
   BAUD128000          128000      115200
   BAUD256000          256000      115200
</pre> 
<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a8f428dad3c4ec2fa8128397628c7e5d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f428dad3c4ec2fa8128397628c7e5d1">&#9670;&nbsp;</a></span>setDataBits()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setDataBits </td>
          <td>(</td>
          <td class="paramtype">DataBitsType&#160;</td>
          <td class="paramname"><em>dataBits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the number of data bits used by the serial port. Possible values of dataBits are: </p><pre class="fragment">    DATA_5      5 data bits
    DATA_6      6 data bits
    DATA_7      7 data bits
    DATA_8      8 data bits
</pre><dl class="section note"><dt>Note</dt><dd>This function is subject to the following restrictions: </dd></dl>
<dl class="section user"><dt></dt><dd>5 data bits cannot be used with 2 stop bits. </dd></dl>
<dl class="section user"><dt></dt><dd>8 data bits cannot be used with space parity on POSIX systems. </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a089c560fd901eabe7190e80a36c7dcb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a089c560fd901eabe7190e80a36c7dcb8">&#9670;&nbsp;</a></span>setDtr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setDtr </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets DTR line to the requested state (high by default). This function will have no effect if the port associated with the class is not currently open. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a8bdd56422fbb95da7216f182a1ef6cfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bdd56422fbb95da7216f182a1ef6cfb">&#9670;&nbsp;</a></span>setFlowControl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setFlowControl </td>
          <td>(</td>
          <td class="paramtype">FlowType&#160;</td>
          <td class="paramname"><em>flow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the flow control used by the port. Possible values of flow are: </p><pre class="fragment">    FLOW_OFF            No flow control
    FLOW_HARDWARE       Hardware (RTS/CTS) flow control
    FLOW_XONXOFF        Software (XON/XOFF) flow control
</pre> <dl class="section note"><dt>Note</dt><dd>FLOW_HARDWARE may not be supported on all versions of UNIX. In cases where it is unsupported, FLOW_HARDWARE is the same as FLOW_OFF. </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a22dedc4f44c33b13f64bff33f844f795"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22dedc4f44c33b13f64bff33f844f795">&#9670;&nbsp;</a></span>setParity()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setParity </td>
          <td>(</td>
          <td class="paramtype">ParityType&#160;</td>
          <td class="paramname"><em>parity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the parity associated with the serial port. The possible values of parity are: </p><pre class="fragment">    PAR_SPACE       Space Parity
    PAR_MARK        Mark Parity
    PAR_NONE        No Parity
    PAR_EVEN        Even Parity
    PAR_ODD         Odd Parity
</pre><dl class="section note"><dt>Note</dt><dd>This function is subject to the following limitations: </dd></dl>
<dl class="section user"><dt></dt><dd>POSIX systems do not support mark parity. </dd></dl>
<dl class="section user"><dt></dt><dd>POSIX systems support space parity only if tricked into doing so, and only with fewer than 8 data bits. Use space parity very carefully with POSIX systems. </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="aa099a4b3f406cf017e1dfe55da3a2c6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa099a4b3f406cf017e1dfe55da3a2c6a">&#9670;&nbsp;</a></span>setRts()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setRts </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>set</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets RTS line to the requested state (high by default). This function will have no effect if the port associated with the class is not currently open. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a34b54ac1bef6090010bf00a45dc173fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34b54ac1bef6090010bf00a45dc173fe">&#9670;&nbsp;</a></span>setStopBits()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setStopBits </td>
          <td>(</td>
          <td class="paramtype">StopBitsType&#160;</td>
          <td class="paramname"><em>stopBits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the number of stop bits used by the serial port. Possible values of stopBits are: </p><pre class="fragment">    STOP_1      1 stop bit
    STOP_1_5    1.5 stop bits
    STOP_2      2 stop bits
</pre> <dl class="section note"><dt>Note</dt><dd>This function is subject to the following restrictions: </dd></dl>
<dl class="section user"><dt></dt><dd>2 stop bits cannot be used with 5 data bits. </dd></dl>
<dl class="section user"><dt></dt><dd>POSIX does not support 1.5 stop bits. </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a33cde9629cc224628258dedbb5b48392"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33cde9629cc224628258dedbb5b48392">&#9670;&nbsp;</a></span>setTimeout()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::setTimeout </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>millisec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the read and write timeouts for the port to millisec milliseconds. Note that this is a per-character timeout, i.e. the port will wait this long for each individual character, not for the whole read operation. This timeout also applies to the bytesWaiting() function.</p>
<dl class="section note"><dt>Note</dt><dd>POSIX does not support millisecond-level control for I/O timeout values. Any timeout set using this function will be set to the next lowest tenth of a second for the purposes of detecting read or write timeouts. For example a timeout of 550 milliseconds will be seen by the class as a timeout of 500 milliseconds for the purposes of reading and writing the port. However millisecond-level control is allowed by the select() system call, so for example a 550-millisecond timeout will be seen as 550 milliseconds on POSIX systems for the purpose of detecting available bytes in the read buffer. </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a6687bed8a582b144763eb11c4240dbe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6687bed8a582b144763eb11c4240dbe5">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 Posix_QextSerialPort::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function will return the number of bytes waiting in the receive queue of the serial port. It is included primarily to provide a complete QIODevice interface, and will not record errors in the lastErr member (because it is const). This function is also not thread-safe - in multithreading situations, use Posix_QextSerialPort::bytesWaiting() instead. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="aa099923f1360a08c6b7072254fd056e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa099923f1360a08c6b7072254fd056e6">&#9670;&nbsp;</a></span>translateError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::translateError </td>
          <td>(</td>
          <td class="paramtype">ulong&#160;</td>
          <td class="paramname"><em>error</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Translates a system-specific error code to a <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> error code. Used internally. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="a3a425e78db628945a666c52aa8638d0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a425e78db628945a666c52aa8638d0f">&#9670;&nbsp;</a></span>ungetChar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Posix_QextSerialPort::ungetChar </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function is included to implement the full QIODevice interface, and currently has no purpose within this class. This function is meaningless on an unbuffered device and currently only prints a warning message to that effect. </p>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<a id="ae8aabe89e479259b0b991dbd6b424f78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8aabe89e479259b0b991dbd6b424f78">&#9670;&nbsp;</a></span>writeData()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 Posix_QextSerialPort::writeData </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qint64&#160;</td>
          <td class="paramname"><em>maxSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Writes a block of data to the serial port. This function will write maxSize bytes from the buffer pointed to by data to the serial port. Return value is the number of bytes actually written, or -1 on error.</p>
<dl class="section warning"><dt>Warning</dt><dd>before calling this function ensure that serial port associated with this class is currently open (use isOpen() function to check if port is open). </dd></dl>

<p>Implements <a class="el" href="class_qext_serial_base.html">QextSerialBase</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/qextserialport/<a class="el" href="posix__qextserialport_8h_source.html">posix_qextserialport.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qextserialport/posix_qextserialport.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
